package com.cos.shop.dao;

import com.cos.shop.entity.User;

import java.sql.SQLException;

/**
 * @author: COS
 * @time: 2022/2/23 14:36
 * @description:
 */
public interface UserDao {

    User checkUserName(String username) throws SQLException;

    int addUser(User u) throws SQLException;

    User getUserByCodeAndEmail(String email, String code) throws SQLException;

    int activeUser(int uid) throws SQLException;
}
